package com.footprint.common.httpclient;

import org.apache.http.message.BasicNameValuePair;

import com.footprint.common.util.Constants;

public class CAFareSearchClient {
	public CAFareSearchClient(){}
	
	public void execute() throws Exception {
		FareSearchClient fsc = new FareSearchClient();
		// BasicHttpRequest request = new BasicHttpRequest( "www.airchina.com.cn", "http", "/InternetBooking", "/AirFareFamiliesForward.do", Constants.HttpMethod.GET);
		BasicHttpRequest request = new CAHttpRequest( "www.airchina.com.cn", "http", "/InternetBooking", "/AirFareFamiliesForward.do", Constants.HttpMethod.GET);
		
		HttpResponseInterface sresp = fsc.execute( request );
		SearchResponse sr = sresp.getResponse();
		request.abort();
		System.out.println( sr.getEntity() );
		
		
	}
	
	
}
